/*
 * @Author: 橘子
 * @Date: 2022-09-30 21:54:25
 * @Project_description: 版本信息
 * @Description: 代码是我抄的，不会也是真的
 */
import setting from '@/setting'
import log from '@/libs/util.log'

export default {
  namespaced: true,
  mutations: {
    /**
     * @description 显示版本信息
     * @param {Object} state state
     */
    versionShow() {
      if (process.env.NODE_ENV === 'development') {
        log.capsule('application', setting.appInfo.title, 'success')
        log.capsule('当前版本', setting.appInfo.version, 'primary')
        log.capsule('storage', `${setting.appInfo.name}-${setting.appInfo.version}`, 'warning')
        log.capsule('请求api', setting.appInfo.baseUrl, 'warning')
        log.capsule('上传api', setting.appInfo.uploadUrl, 'warning')
        log.capsule('图片base', setting.appInfo.imgUrl || null, 'warning')

      }
    },
  },
}
